#include <QApplication>
#include <QDialog>
#include <QPushButton>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QCheckBox>
#include <QLabel>

int main(int c, char ** v)
{
	QApplication app(c,v);

	QDialog d(NULL);

	QVBoxLayout *vl = new QVBoxLayout();
	QHBoxLayout *hl = new QHBoxLayout();

	vl -> addWidget(new QCheckBox("Don't check!", &d));
	vl -> addWidget(new QLabel("Label", &d));
	vl -> addWidget(new QPushButton("Don't push me!", &d));
	vl -> addItem(new QSpacerItem(10, 10, QSizePolicy::Maximum));

	hl -> addWidget(new QLabel("Qlabel", &d));
	hl -> addItem(vl);

	d.setLayout(hl);
	d.show();

	return app.exec();
}
